using System;
using System.ComponentModel;

namespace QLTB.BusinessObjects
{
    /// <summary>
    /// Project: NNS System 
    /// Generated Class for Table : TBL_lichsu.
    /// Date: 19/07/2010
    /// Author: Trần Hoàng Tâm
    /// </summary>
    public class TBL_lichsu : Object
    {
        #region Init

        private int m_id;
        private int m_idNhanvien;
        private int m_idthietbi;
        private DateTime m_ngay;
        private string m_nguoiTH;
        private string m_noidung;


        public TBL_lichsu()
        {
            //
            // TODO: Add constructor logic here
            //
        }

        public TBL_lichsu(
            int id,
            int idthietbi,
            DateTime ngay,
            string noidung,
            string nguoiTH,
            int idNhanvien)
        {
            //
            // TODO: Add constructor logic here
            //
            SetData
                (
                    id,
                    idthietbi,
                    ngay,
                    noidung,
                    nguoiTH,
                    idNhanvien
                );
        }


        public void SetData(
            int id,
            int idthietbi,
            DateTime ngay,
            string noidung,
            string nguoiTH,
            int idNhanvien)
        {
            //
            // TODO: Add constructor logic here
            //
            m_id = id;
            m_idthietbi = idthietbi;
            m_ngay = ngay;
            m_noidung = noidung;
            m_nguoiTH = nguoiTH;
            m_idNhanvien = idNhanvien;
        }

        #endregion

        #region Property

        [DisplayName("id")]
        [Category("Primary Key")]
        public int id
        {
            get { return m_id; }
            set { m_id = value; }
        }

        [DisplayName("idthietbi")]
        [Category("Column")]
        public int idthietbi
        {
            get { return m_idthietbi; }
            set { m_idthietbi = value; }
        }

        [DisplayName("ngay")]
        [Category("Column")]
        public DateTime ngay
        {
            get { return m_ngay; }
            set { m_ngay = value; }
        }

        [DisplayName("noidung")]
        [Category("Column")]
        public string noidung
        {
            get { return m_noidung; }
            set { m_noidung = value; }
        }

        [DisplayName("nguoiTH")]
        [Category("Column")]
        public string nguoiTH
        {
            get { return m_nguoiTH; }
            set { m_nguoiTH = value; }
        }

        [DisplayName("idNhanvien")]
        [Category("Column")]
        public int idNhanvien
        {
            get { return m_idNhanvien; }
            set { m_idNhanvien = value; }
        }

        #endregion
    }

    #region Enum Fields

    public enum TBL_lichsuFields
    {
        id,
        idthietbi,
        ngay,
        noidung,
        nguoiTH,
        idNhanvien
    }

    #endregion
}